//
//  HJBankListCell.m
//  project
//
//  Created by jc on 2019/4/15.
//  Copyright © 2019 健健. All rights reserved.
//

#import "HJBankListCell.h"
#import "HJBankListVC.h"
@interface HJBankListCell ()
@property (nonatomic,strong) HJBankModel * bankModel;
@end
@implementation HJBankListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    self.backgroundColor = [UIColor clearColor];
    [self.bankImage rounded:UIRectCornerAllCorners radius:25];
    [self.bgView rounded:UIRectCornerAllCorners radius:11];
//    self.bankNum.font = [UIFont systemFontOfSize:SCREEN_WIDTH/414*20];
}

-(void)loadBankDataModel:(HJBankModel *)model {
    self.bankModel = model;
    self.bankName.text = model.bankName;
    [self.bankImage sd_setImageWithURL:[NSURL URLWithString:model.bankIcon]];
    self.bankNum.text = model.bankCardNum;
    self.bankType.text = [model.bankCardType isEqualToString:@"DC"] ? @"储蓄卡" : @"信用卡";;
}

@end
